Defines the parametric form of a line .
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=real64), | public | :: | r0(3) |
The coordinates of the initial point . |
|||
| real(kind=real64), | public | :: | v(3) |
The vector defining the orientation of the line. |
Constructs a line from two points.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | pt1(3) |
The first point. This point will act as the initial point along the line such that in the equation of the line . |
||
| real(kind=real64), | intent(in) | :: | pt2(3) |
The second point. |
The resulting line.
Constructs a line from the intersection of two planes.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plane), | intent(in) | :: | p1 |
The first plane. |
||
| class(plane), | intent(in) | :: | p2 |
The second plane. |
The resulting line. NaN's are returned in the event that the two planes are parallel.
Constructs the line that best fits the supplied set of points in a least-squares sense.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in), | dimension(:,:) | :: | pts |
An N-by-3 matrix where N is at least 2, but typically much larger. |
The resulting line.
Evaluates the equation of the line at the specified parameter.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(line), | intent(in) | :: | this |
The line. |
||
| real(kind=real64), | intent(in) | :: | t |
The parameter. |
The location along the line defined by the parameter .